# **********************************************************************
#
# Copyright (c) 2003-2009 ZeroC, Inc. All rights reserved.
#
# This copy of Ice is licensed to you under the terms described in the
# ICE_LICENSE file included in this distribution.
#
# **********************************************************************

# Ice version 3.3.1
# Generated from file `TeRKCommon.ice'

import Ice, IcePy, __builtin__

if not Ice.__dict__.has_key("_struct_marker"):
    Ice._struct_marker = object()
#import IceE_Identity_ice
import MRPLPeer_ice

# Included module Ice
_M_Ice = Ice.openModule('Ice')

# Included module Glacier2
_M_Glacier2 = Ice.openModule('Glacier2')

# Included module peer
_M_peer = Ice.openModule('peer')

# Start of module TeRK
_M_TeRK = Ice.openModule('TeRK')
__name__ = 'TeRK'

if not _M_TeRK.__dict__.has_key('_t_BooleanArray'):
    _M_TeRK._t_BooleanArray = IcePy.defineSequence('::TeRK::BooleanArray', (), IcePy._t_bool)

if not _M_TeRK.__dict__.has_key('_t_ByteArray'):
    _M_TeRK._t_ByteArray = IcePy.defineSequence('::TeRK::ByteArray', (), IcePy._t_byte)

if not _M_TeRK.__dict__.has_key('_t_IntArray'):
    _M_TeRK._t_IntArray = IcePy.defineSequence('::TeRK::IntArray', (), IcePy._t_int)

if not _M_TeRK.__dict__.has_key('_t_ShortArray'):
    _M_TeRK._t_ShortArray = IcePy.defineSequence('::TeRK::ShortArray', (), IcePy._t_short)

if not _M_TeRK.__dict__.has_key('_t_StringArray'):
    _M_TeRK._t_StringArray = IcePy.defineSequence('::TeRK::StringArray', (), IcePy._t_string)

if not _M_TeRK.__dict__.has_key('_t_ProxyTypeIdToIdentityMap'):
    _M_TeRK._t_ProxyTypeIdToIdentityMap = IcePy.defineDictionary('::TeRK::ProxyTypeIdToIdentityMap', (), IcePy._t_string, _M_Ice._t_Identity)

if not _M_TeRK.__dict__.has_key('_t_PropertyMap'):
    _M_TeRK._t_PropertyMap = IcePy.defineDictionary('::TeRK::PropertyMap', (), IcePy._t_string, IcePy._t_string)

if not _M_TeRK.__dict__.has_key('TeRKException'):
    _M_TeRK.TeRKException = Ice.createTempClass()
    class TeRKException(Ice.UserException):
        def __init__(self, reason=''):
            self.reason = reason

        def ice_name(self):
            return 'TeRK::TeRKException'

        def __str__(self):
            return IcePy.stringifyException(self)

        __repr__ = __str__

    _M_TeRK._t_TeRKException = IcePy.defineException('::TeRK::TeRKException', TeRKException, (), None, (('reason', (), IcePy._t_string),))
    TeRKException.ice_type = _M_TeRK._t_TeRKException

    _M_TeRK.TeRKException = TeRKException
    del TeRKException

if not _M_TeRK.__dict__.has_key('ReadOnlyPropertyException'):
    _M_TeRK.ReadOnlyPropertyException = Ice.createTempClass()
    class ReadOnlyPropertyException(_M_TeRK.TeRKException):
        def __init__(self, reason=''):
            _M_TeRK.TeRKException.__init__(self, reason)

        def ice_name(self):
            return 'TeRK::ReadOnlyPropertyException'

        def __str__(self):
            return IcePy.stringifyException(self)

        __repr__ = __str__

    _M_TeRK._t_ReadOnlyPropertyException = IcePy.defineException('::TeRK::ReadOnlyPropertyException', ReadOnlyPropertyException, (), _M_TeRK._t_TeRKException, ())
    ReadOnlyPropertyException.ice_type = _M_TeRK._t_ReadOnlyPropertyException

    _M_TeRK.ReadOnlyPropertyException = ReadOnlyPropertyException
    del ReadOnlyPropertyException

if not _M_TeRK.__dict__.has_key('CommandException'):
    _M_TeRK.CommandException = Ice.createTempClass()
    class CommandException(_M_TeRK.TeRKException):
        def __init__(self, reason=''):
            _M_TeRK.TeRKException.__init__(self, reason)

        def ice_name(self):
            return 'TeRK::CommandException'

        def __str__(self):
            return IcePy.stringifyException(self)

        __repr__ = __str__

    _M_TeRK._t_CommandException = IcePy.defineException('::TeRK::CommandException', CommandException, (), _M_TeRK._t_TeRKException, ())
    CommandException.ice_type = _M_TeRK._t_CommandException

    _M_TeRK.CommandException = CommandException
    del CommandException

if not _M_TeRK.__dict__.has_key('PropertyManager'):
    _M_TeRK.PropertyManager = Ice.createTempClass()
    class PropertyManager(Ice.Object):
        def __init__(self):
            if __builtin__.type(self) == _M_TeRK.PropertyManager:
                raise RuntimeError('TeRK.PropertyManager is an abstract class')

        def ice_ids(self, current=None):
            return ('::Ice::Object', '::TeRK::PropertyManager')

        def ice_id(self, current=None):
            return '::TeRK::PropertyManager'

        def ice_staticId():
            return '::TeRK::PropertyManager'
        ice_staticId = staticmethod(ice_staticId)

        #
        # Operation signatures.
        #
        # def getProperty(self, key, current=None):
        # def getProperties(self, current=None):
        # def getPropertyKeys(self, current=None):
        # def setProperty(self, key, value, current=None):

        def __str__(self):
            return IcePy.stringify(self, _M_TeRK._t_PropertyManager)

        __repr__ = __str__

    _M_TeRK.PropertyManagerPrx = Ice.createTempClass()
    class PropertyManagerPrx(Ice.ObjectPrx):

        def getProperty(self, key, _ctx=None):
            return _M_TeRK.PropertyManager._op_getProperty.invoke(self, ((key, ), _ctx))

        def getProperty_async(self, _cb, key, _ctx=None):
            return _M_TeRK.PropertyManager._op_getProperty.invokeAsync(self, (_cb, (key, ), _ctx))

        def getProperties(self, _ctx=None):
            return _M_TeRK.PropertyManager._op_getProperties.invoke(self, ((), _ctx))

        def getProperties_async(self, _cb, _ctx=None):
            return _M_TeRK.PropertyManager._op_getProperties.invokeAsync(self, (_cb, (), _ctx))

        def getPropertyKeys(self, _ctx=None):
            return _M_TeRK.PropertyManager._op_getPropertyKeys.invoke(self, ((), _ctx))

        def getPropertyKeys_async(self, _cb, _ctx=None):
            return _M_TeRK.PropertyManager._op_getPropertyKeys.invokeAsync(self, (_cb, (), _ctx))

        def setProperty(self, key, value, _ctx=None):
            return _M_TeRK.PropertyManager._op_setProperty.invoke(self, ((key, value), _ctx))

        def setProperty_async(self, _cb, key, value, _ctx=None):
            return _M_TeRK.PropertyManager._op_setProperty.invokeAsync(self, (_cb, (key, value), _ctx))

        def checkedCast(proxy, facetOrCtx=None, _ctx=None):
            return _M_TeRK.PropertyManagerPrx.ice_checkedCast(proxy, '::TeRK::PropertyManager', facetOrCtx, _ctx)
        checkedCast = staticmethod(checkedCast)

        def uncheckedCast(proxy, facet=None):
            return _M_TeRK.PropertyManagerPrx.ice_uncheckedCast(proxy, facet)
        uncheckedCast = staticmethod(uncheckedCast)

    _M_TeRK._t_PropertyManagerPrx = IcePy.defineProxy('::TeRK::PropertyManager', PropertyManagerPrx)

    _M_TeRK._t_PropertyManager = IcePy.defineClass('::TeRK::PropertyManager', PropertyManager, (), True, None, (), ())
    PropertyManager.ice_type = _M_TeRK._t_PropertyManager

    PropertyManager._op_getProperty = IcePy.Operation('getProperty', Ice.OperationMode.Normal, Ice.OperationMode.Normal, False, (), (((), IcePy._t_string),), (), IcePy._t_string, ())
    PropertyManager._op_getProperties = IcePy.Operation('getProperties', Ice.OperationMode.Normal, Ice.OperationMode.Normal, False, (), (), (), _M_TeRK._t_PropertyMap, ())
    PropertyManager._op_getPropertyKeys = IcePy.Operation('getPropertyKeys', Ice.OperationMode.Normal, Ice.OperationMode.Normal, False, (), (), (), _M_TeRK._t_StringArray, ())
    PropertyManager._op_setProperty = IcePy.Operation('setProperty', Ice.OperationMode.Normal, Ice.OperationMode.Normal, False, (), (((), IcePy._t_string), ((), IcePy._t_string)), (), None, (_M_TeRK._t_ReadOnlyPropertyException,))

    _M_TeRK.PropertyManager = PropertyManager
    del PropertyManager

    _M_TeRK.PropertyManagerPrx = PropertyManagerPrx
    del PropertyManagerPrx

if not _M_TeRK.__dict__.has_key('AbstractCommandController'):
    _M_TeRK.AbstractCommandController = Ice.createTempClass()
    class AbstractCommandController(_M_TeRK.PropertyManager):
        def __init__(self):
            if __builtin__.type(self) == _M_TeRK.AbstractCommandController:
                raise RuntimeError('TeRK.AbstractCommandController is an abstract class')

        def ice_ids(self, current=None):
            return ('::Ice::Object', '::TeRK::AbstractCommandController', '::TeRK::PropertyManager')

        def ice_id(self, current=None):
            return '::TeRK::AbstractCommandController'

        def ice_staticId():
            return '::TeRK::AbstractCommandController'
        ice_staticId = staticmethod(ice_staticId)

        def __str__(self):
            return IcePy.stringify(self, _M_TeRK._t_AbstractCommandController)

        __repr__ = __str__

    _M_TeRK.AbstractCommandControllerPrx = Ice.createTempClass()
    class AbstractCommandControllerPrx(_M_TeRK.PropertyManagerPrx):

        def checkedCast(proxy, facetOrCtx=None, _ctx=None):
            return _M_TeRK.AbstractCommandControllerPrx.ice_checkedCast(proxy, '::TeRK::AbstractCommandController', facetOrCtx, _ctx)
        checkedCast = staticmethod(checkedCast)

        def uncheckedCast(proxy, facet=None):
            return _M_TeRK.AbstractCommandControllerPrx.ice_uncheckedCast(proxy, facet)
        uncheckedCast = staticmethod(uncheckedCast)

    _M_TeRK._t_AbstractCommandControllerPrx = IcePy.defineProxy('::TeRK::AbstractCommandController', AbstractCommandControllerPrx)

    _M_TeRK._t_AbstractCommandController = IcePy.defineClass('::TeRK::AbstractCommandController', AbstractCommandController, (), True, None, (_M_TeRK._t_PropertyManager,), ())
    AbstractCommandController.ice_type = _M_TeRK._t_AbstractCommandController

    _M_TeRK.AbstractCommandController = AbstractCommandController
    del AbstractCommandController

    _M_TeRK.AbstractCommandControllerPrx = AbstractCommandControllerPrx
    del AbstractCommandControllerPrx

if not _M_TeRK.__dict__.has_key('_t_AbstractCommandControllerProxyArray'):
    _M_TeRK._t_AbstractCommandControllerProxyArray = IcePy.defineSequence('::TeRK::AbstractCommandControllerProxyArray', (), _M_TeRK._t_AbstractCommandControllerPrx)

if not _M_TeRK.__dict__.has_key('TerkUser'):
    _M_TeRK.TerkUser = Ice.createTempClass()
    class TerkUser(_M_peer.ConnectionEventHandler, _M_TeRK.PropertyManager):
        def __init__(self):
            if __builtin__.type(self) == _M_TeRK.TerkUser:
                raise RuntimeError('TeRK.TerkUser is an abstract class')

        def ice_ids(self, current=None):
            return ('::Ice::Object', '::TeRK::PropertyManager', '::TeRK::TerkUser', '::peer::ConnectionEventHandler', '::peer::PeerConnectionEventHandler', '::peer::UserConnectionEventHandler')

        def ice_id(self, current=None):
            return '::TeRK::TerkUser'

        def ice_staticId():
            return '::TeRK::TerkUser'
        ice_staticId = staticmethod(ice_staticId)

        #
        # Operation signatures.
        #
        # def getSupportedServices(self, current=None):

        def __str__(self):
            return IcePy.stringify(self, _M_TeRK._t_TerkUser)

        __repr__ = __str__

    _M_TeRK.TerkUserPrx = Ice.createTempClass()
    class TerkUserPrx(_M_peer.ConnectionEventHandlerPrx, _M_TeRK.PropertyManagerPrx):

        def getSupportedServices(self, _ctx=None):
            return _M_TeRK.TerkUser._op_getSupportedServices.invoke(self, ((), _ctx))

        def getSupportedServices_async(self, _cb, _ctx=None):
            return _M_TeRK.TerkUser._op_getSupportedServices.invokeAsync(self, (_cb, (), _ctx))

        def checkedCast(proxy, facetOrCtx=None, _ctx=None):
            return _M_TeRK.TerkUserPrx.ice_checkedCast(proxy, '::TeRK::TerkUser', facetOrCtx, _ctx)
        checkedCast = staticmethod(checkedCast)

        def uncheckedCast(proxy, facet=None):
            return _M_TeRK.TerkUserPrx.ice_uncheckedCast(proxy, facet)
        uncheckedCast = staticmethod(uncheckedCast)

    _M_TeRK._t_TerkUserPrx = IcePy.defineProxy('::TeRK::TerkUser', TerkUserPrx)

    _M_TeRK._t_TerkUser = IcePy.defineClass('::TeRK::TerkUser', TerkUser, (), True, None, (_M_peer._t_ConnectionEventHandler, _M_TeRK._t_PropertyManager), ())
    TerkUser.ice_type = _M_TeRK._t_TerkUser

    TerkUser._op_getSupportedServices = IcePy.Operation('getSupportedServices', Ice.OperationMode.Nonmutating, Ice.OperationMode.Nonmutating, False, (), (), (), _M_TeRK._t_ProxyTypeIdToIdentityMap, ())

    _M_TeRK.TerkUser = TerkUser
    del TerkUser

    _M_TeRK.TerkUserPrx = TerkUserPrx
    del TerkUserPrx

# End of module TeRK
